package com.company.test19;

import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * Created by Administrator on 2016.9.23.
 */
public class Test1902 {
    public static void main(String[] args) throws IOException{
        File file=new File("src/com/company/test19/Exercise1902.dat");
        if (!file.exists()){
            file.createNewFile();
        }

        DataOutputStream output=new DataOutputStream(new FileOutputStream(file,true));
        for(int i=0;i<100;i++){
            output.writeInt((int)(Math.random()*100));
        }
        output.close();
    }
}
